/*
 * Copyright (C) Hisilicon Technologies Co., Ltd. 2012-2019. All rights reserved.
 * Description: Function of os05a_cmos.h
 * Author: ISP SW
 * Create: 2012/06/28
 */

#ifndef __OS05A_CMOS_H_
#define __OS05A_CMOS_H_

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif

#define OS05A_I2C_ADDR    0x6C
#define OS05A_ADDR_BYTE   2
#define OS05A_DATA_BYTE   1

#define OS05A_SENSOR_GET_CTX(dev, pstCtx)   ((pstCtx) = os05a_get_ctx(dev));

ISP_SNS_STATE_S *os05a_get_ctx(VI_PIPE vi_pipe);
ISP_SNS_COMMBUS_U *os05a_get_bus_Info(VI_PIPE vi_pipe);

void os05a_init(VI_PIPE vi_pipe);
void os05a_exit(VI_PIPE vi_pipe);
void os05a_standby(VI_PIPE vi_pipe);
void os05a_restart(VI_PIPE vi_pipe);
int  os05a_write_register(VI_PIPE vi_pipe, HI_U32 addr, HI_U32 data);
int  os05a_read_register(VI_PIPE vi_pipe, HI_U32 addr);

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* End of #ifdef __cplusplus */
#endif /* __OS05A_CMOS_H_ */
